package user;

import book.BookList;
import operation.IOoperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 三石
 * Date: 2022-05-21
 * Time: 18:53
 */
public abstract class User {
    //用户名
    protected String name;
    protected IOoperation[] iOoperations; //此时并没有初始化和分配大小
    public User(String name){
        this.name=name;
    }

    public abstract int menu();//抽象化方法
    public void doOperation(int choice, BookList bookList){
        this.iOoperations[choice].work(bookList);
    }
}
